import { NgModule } from '@angular/core';

import { RouterModule } from '@angular/router';
import { HttpModule,JsonpModule ,Http} from '@angular/http';
import { AppComponent } from './app.component';
import {appRoutes} from './app.routes';
import {ProjectIndexListComponent} from './project/components/project-index-list.component'
import {ProjectFindService} from './project/service/project.find.service'
import {ProjectModule} from "./project/project.module";
import {CategoryModule} from "./category/category.module"
import {UserModule} from "./user/user.module";
import {AppLoginComponent} from "./app.login";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import { FileUploadModule } from 'ng2-file-upload';
import {CommonModule, LocationStrategy, HashLocationStrategy}     from '@angular/common';
import {SharedModule} from './shared/shared.module'
import {BrowserModule} from "@angular/platform-browser";

// import {NgxPaginationModule} from '@ngx-pagination/'; // <-- import the module
// import {Ng2PaginationModule} from "ng2-pagination"
@NgModule({
  imports: [

    BrowserModule.withServerTransition({appId: 'jiangxindc'}),

    RouterModule,
    HttpModule,
    FormsModule,
    ReactiveFormsModule,
    JsonpModule,
    RouterModule.forRoot(appRoutes),
    ProjectModule,
    UserModule,
    CategoryModule,
    FileUploadModule,
    CommonModule,
    SharedModule
    // Ng2PaginationModule
    // NgxPaginationModule
  ],
  declarations: [
    AppComponent,
    ProjectIndexListComponent,
    AppLoginComponent,

  ],
  providers: [
    ProjectFindService,
    { provide: LocationStrategy, useClass: HashLocationStrategy, }
  ],
  bootstrap: [AppComponent]
})

export class AppModule {

}
